<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty {debug} function plugin
 *
 * Type:     function<br>
 * Name:     debug<br>
 * Date:     July 1, 2002<br>
 * Purpose:  popup debug window
 * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
 *       (Smarty online manual)
 * @author   Monte Ohrt <monte at ohrt dot com>
 * @version  1.0
 * @param array
 * @param Smarty
 * @return string output from {@link Smarty::_generate_debug_output()}
 */

//@require_once('./lib/banse.inc');
function lieu_link($params)
{
  $pars = array('id'=>0,'class'=>'','lieu'=>array('lieu_id'=>0),'libOnly'=>false,'title'=>true,'diminutif'=>false);
  $p = array_merge($pars,$params);

  $id  = $p['id'];

  if($id==0)
     $id = $p['lieu']['lieu_id'];

  return getLieuLien($id, $p['lieu'], $p['class'],$p);

}

function smarty_function_lieu_link($params, &$smarty){
  return lieu_link($params);
}

/* vim: set expandtab: */

?>
